.class public Lcom/waiqin365/base/login/af;
.super Ljava/lang/Object;


# static fields
.field private static b:Lcom/waiqin365/base/login/af;


# instance fields
.field private a:Ljava/util/LinkedList;


# direct methods
.method private constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/login/af;->a:Ljava/util/LinkedList;

    return-void
.end method

.method public static a()Lcom/waiqin365/base/login/af;
    .locals 1

    sget-object v0, Lcom/waiqin365/base/login/af;->b:Lcom/waiqin365/base/login/af;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/base/login/af;

    invoke-direct {v0}, Lcom/waiqin365/base/login/af;-><init>()V

    sput-object v0, Lcom/waiqin365/base/login/af;->b:Lcom/waiqin365/base/login/af;

    :cond_0
    sget-object v0, Lcom/waiqin365/base/login/af;->b:Lcom/waiqin365/base/login/af;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/app/Activity;)V
    .locals 1

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/af;->a:Ljava/util/LinkedList;

    invoke-virtual {v0, p1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public b()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/base/login/af;->a:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    move v1, v0

    :goto_0
    const/4 v0, -0x1

    if-le v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/af;->a:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    iget-object v2, p0, Lcom/waiqin365/base/login/af;->a:Ljava/util/LinkedList;

    invoke-virtual {v2, v1}, Ljava/util/LinkedList;->remove(I)Ljava/lang/Object;

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    add-int/lit8 v0, v1, -0x1

    move v1, v0

    goto :goto_0

    :cond_0
    return-void
.end method

.method public b(Landroid/app/Activity;)V
    .locals 1

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/base/login/af;->a:Ljava/util/LinkedList;

    invoke-virtual {v0, p1}, Ljava/util/LinkedList;->remove(Ljava/lang/Object;)Z

    invoke-virtual {p1}, Landroid/app/Activity;->finish()V

    goto :goto_0
.end method
